'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Training = app.model.define('trainings', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    personnelId: INTEGER,
    userName: STRING,
    address: STRING,
    organizers: STRING,
    hour: INTEGER,
    content: STRING,
    start: STRING,
    end: STRING,
    creation: STRING,
  });

  return Training;
};
